class Messages {
  final String mid; // 消息 ID

  final int type; // 消息类型

  final int status; // 消息状态

  final String content; // 消息内容

  final String toId; // 接收人

  final String fromId; // 发送人

  final int time; // 时间

  Messages(
      {this.mid, this.type, this.status, this.content, this.toId, this.fromId})
      : time = DateTime.now().millisecondsSinceEpoch;

  @override
  String toString() {
    return 'Messages{mid: $mid, type: $type, status: $status, content: $content, toId: $toId, fromId: $fromId, time: $time}';
  }


}
